import { formatIssueLogItem } from './issue-log/format';

export const formatLogItem = (item) => {
  if (item.type === 'Issue') return formatIssueLogItem(item);
  console.warn('错误的log类型', item);
  return {};
};

export const formatLog = log => log.map(item => formatLogItem(item));
